
//手机端响应式布局
function offset(){
    var html = document.querySelector('html');
    var rem = html.offsetWidth / 6.4;
    if(html.offsetWidth>750){
        rem = html.offsetWidth / 12.8;
    }
    if(html.offsetWidth>1400){
        rem = html.offsetWidth / 20;
    }
    html.style.fontSize = rem + "px";
}
offset();
window.onresize=offset;